package com.simple.vo;

public class GeneralName {
	
	private static long time = 0;
	
	private static int count = 0;
	
	public static synchronized String getUniqueName() {
		long now = System.currentTimeMillis();
		if (now == time) {
			count++;
			if (count >= 10000) {
				try {
					Thread.sleep(2);
				}
				catch (Exception e) {
					
				}
				now = System.currentTimeMillis();
				count = 0;
			}
		}
		else {
			count = 0;
		}
		time = now;
		return now + "" + count;
	}
}
